package com.sdry.basic.service;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sdry.basic.entity.Pylons;
import com.sdry.basic.mapper.PylonsMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * (Pylons)表服务实现类
 *
 * @author makejava
 * @since 2020-03-10 16:14:03
 */
@Service("pylonsService")
@Transactional(rollbackFor = Exception.class)
public class PylonsServiceImpl extends ServiceImpl<PylonsMapper,Pylons> implements PylonsService{
    @Resource
    private PylonsMapper pylonsDao;

    @Override
    public boolean deletePylons(Long pyId) {
        Integer effect = pylonsDao.deletePylons(pyId);
        if (effect != null) {
            return true;
        }
        return false;
    }
}